﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddEmployee.aspx.cs" Inherits="Setting_AddEmployee" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加用户</title>
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <style type="text/css">
        .editFormTitle{ font-size:15px; font-weight:bold; color:#003399; padding:10px 0px;}
		.editFormBody{padding:10px 0px;}
		.editFormBottom{ padding:0px 5px; background-color:#E0E0E0; margin-top:20px;}
		.editFormSubbar{ padding:5px; background-color:#E2EDF4;}
    </style>
    <script type="text/javascript">
        function VerifyForm() {
            if ($("#emplName").val() == "") {
                alert('姓名不能为空!');
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return VerifyForm()">
    <div class="editFormTitle">添加用户</div>

    <div class="editFormSubbar">基本信息</div>
    <div class="editFormBody">
    <table id="EmplInfo" width="600px" border="0" cellpadding="3">
		<tr>
			<td>
				<font color="red">*</font>姓名：<br />
				<input type="text" id="emplName" name="emplName" value="<% if (empl!=null) Response.Write (empl.EmplName);%>" <%if (ReadOnly) Response.Write (" readOnly");%> />
			</td>
			<td>
				性别：<br />
				<input type="radio" id="male" name="sex" value="male" <%if (empl!=null) {if (empl.Sex =="male" ||empl.Sex=="") Response.Write ("checked");}else{Response.Write ("checked");}%> />男 &nbsp;&nbsp;<input type="radio" id="female" name="sex" value="female" <%if (empl!=null) if (empl.Sex=="female") Response.Write ("checked");%> />女
			</td>
			<td>
				
			</td>
		</tr>
		<tr >
			<td>
				<font color="red">*</font>登录名：<br />
				<input type="text" id="username" name="username" value="<%%>" />
			</td>
			<td id="td_pwd1">
				<font color="red">*</font>密码：<br />
				<input type="password" id="userpwd" name="userpwd" style="width: 150px;" value="" />
			</td>
			<td id="td_pwd2">
				<font color="red">*</font>重复密码：<br />
				<input type="password" id="userpwd2" name="userpwd2" style="width: 150px;" value="" />
			</td>
		</tr>
		<tr>
			<td>
				移动电话：<br />
				<input type="text" id="mobile" name="mobile" value="<% if (empl!=null) Response.Write (empl.Mobile);%>" <%if (ReadOnly) Response.Write (" readOnly");%> />
			</td>
			<td>
				固定电话：<br />
				<input type="text" id="tele1" name="tele1" value="<% if (empl!=null) Response.Write (empl.Phone1);%>" <%if (ReadOnly) Response.Write (" readOnly");%> />
			</td>
			<td>
			</td>
		</tr>
		<tr>
			<td>
				出生日期：<br />
				<input type="text" id="birth" name="birth" value="<% if (empl!=null) Response.Write (empl.Birthday.ToString("yyyy-MM-dd"));%>" <%if (ReadOnly) Response.Write (" readOnly");%> />
			</td>
			<td>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>
				电子邮件：<br />
				<input type="text" id="email" name="email" value="<% if (empl!=null) Response.Write (empl.Email);%>" <%if (ReadOnly) Response.Write (" readOnly");%> />
			</td>
			<td>
				MSN或QQ：<br />
				<input type="text" id="pager" name="pager" value="" />
			</td>
            <td></td>
		</tr>
	</table>
    </div>
    <div class="editFormSubbar">公司信息</div>
    <div>
     <table id="Table1" width="600px" border="0" cellpadding="3">
		<tr>
			<td>
				<font color="red">*</font>部门：<br />
				<input type="text" id="Text1" name="" value="" />
			</td>
			<td>
				职位：<br />
				<input type="text" id="Text2" name="" value="" />
			</td>
			<td>
				
			</td>
		</tr></table></div>
    <div class="editFormBottom"><input type="submit" value="  保存  " />&nbsp;<input type="button" value="取消" onclick="self.close();" /></div>
    
    </form>

</body>
</html>
